﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001213 RID: 4627
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartFightFestCsReq : IMessage<StartFightFestCsReq>, IMessage, IEquatable<StartFightFestCsReq>, IDeepCloneable<StartFightFestCsReq>, IBufferMessage
	{
		// Token: 0x17003AA0 RID: 15008
		// (get) Token: 0x0600CF63 RID: 53091 RVA: 0x0022EA47 File Offset: 0x0022CC47
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartFightFestCsReq> Parser
		{
			get
			{
				return StartFightFestCsReq._parser;
			}
		}

		// Token: 0x17003AA1 RID: 15009
		// (get) Token: 0x0600CF64 RID: 53092 RVA: 0x0022EA4E File Offset: 0x0022CC4E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartFightFestCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003AA2 RID: 15010
		// (get) Token: 0x0600CF65 RID: 53093 RVA: 0x0022EA60 File Offset: 0x0022CC60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartFightFestCsReq.Descriptor;
			}
		}

		// Token: 0x0600CF66 RID: 53094 RVA: 0x0022EA67 File Offset: 0x0022CC67
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartFightFestCsReq()
		{
		}

		// Token: 0x0600CF67 RID: 53095 RVA: 0x0022EA88 File Offset: 0x0022CC88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartFightFestCsReq(StartFightFestCsReq other) : this()
		{
			this.eventId_ = other.eventId_;
			this.avatarList_ = other.avatarList_.Clone();
			this.unlockedCoachSkills_ = other.unlockedCoachSkills_.Clone();
			this.type_ = other.type_;
			this.id_ = other.id_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CF68 RID: 53096 RVA: 0x0022EAF2 File Offset: 0x0022CCF2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartFightFestCsReq Clone()
		{
			return new StartFightFestCsReq(this);
		}

		// Token: 0x17003AA3 RID: 15011
		// (get) Token: 0x0600CF69 RID: 53097 RVA: 0x0022EAFA File Offset: 0x0022CCFA
		// (set) Token: 0x0600CF6A RID: 53098 RVA: 0x0022EB02 File Offset: 0x0022CD02
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EventId
		{
			get
			{
				return this.eventId_;
			}
			set
			{
				this.eventId_ = value;
			}
		}

		// Token: 0x17003AA4 RID: 15012
		// (get) Token: 0x0600CF6B RID: 53099 RVA: 0x0022EB0B File Offset: 0x0022CD0B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<PNJBCMKPNEA> AvatarList
		{
			get
			{
				return this.avatarList_;
			}
		}

		// Token: 0x17003AA5 RID: 15013
		// (get) Token: 0x0600CF6C RID: 53100 RVA: 0x0022EB13 File Offset: 0x0022CD13
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> UnlockedCoachSkills
		{
			get
			{
				return this.unlockedCoachSkills_;
			}
		}

		// Token: 0x17003AA6 RID: 15014
		// (get) Token: 0x0600CF6D RID: 53101 RVA: 0x0022EB1B File Offset: 0x0022CD1B
		// (set) Token: 0x0600CF6E RID: 53102 RVA: 0x0022EB23 File Offset: 0x0022CD23
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightFestType Type
		{
			get
			{
				return this.type_;
			}
			set
			{
				this.type_ = value;
			}
		}

		// Token: 0x17003AA7 RID: 15015
		// (get) Token: 0x0600CF6F RID: 53103 RVA: 0x0022EB2C File Offset: 0x0022CD2C
		// (set) Token: 0x0600CF70 RID: 53104 RVA: 0x0022EB34 File Offset: 0x0022CD34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x0600CF71 RID: 53105 RVA: 0x0022EB3D File Offset: 0x0022CD3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartFightFestCsReq);
		}

		// Token: 0x0600CF72 RID: 53106 RVA: 0x0022EB4C File Offset: 0x0022CD4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartFightFestCsReq other)
		{
			return other != null && (other == this || (this.EventId == other.EventId && this.avatarList_.Equals(other.avatarList_) && this.unlockedCoachSkills_.Equals(other.unlockedCoachSkills_) && this.Type == other.Type && this.Id == other.Id && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CF73 RID: 53107 RVA: 0x0022EBD0 File Offset: 0x0022CDD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.EventId != 0U)
			{
				num ^= this.EventId.GetHashCode();
			}
			num ^= this.avatarList_.GetHashCode();
			num ^= this.unlockedCoachSkills_.GetHashCode();
			if (this.Type != FightFestType.None)
			{
				num ^= this.Type.GetHashCode();
			}
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CF74 RID: 53108 RVA: 0x0022EC63 File Offset: 0x0022CE63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CF75 RID: 53109 RVA: 0x0022EC6B File Offset: 0x0022CE6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CF76 RID: 53110 RVA: 0x0022EC74 File Offset: 0x0022CE74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EventId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.EventId);
			}
			this.avatarList_.WriteTo(ref output, StartFightFestCsReq._repeated_avatarList_codec);
			if (this.Type != FightFestType.None)
			{
				output.WriteRawTag(40);
				output.WriteEnum((int)this.Type);
			}
			if (this.Id != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Id);
			}
			this.unlockedCoachSkills_.WriteTo(ref output, StartFightFestCsReq._repeated_unlockedCoachSkills_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CF77 RID: 53111 RVA: 0x0022ED0C File Offset: 0x0022CF0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.EventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EventId);
			}
			num += this.avatarList_.CalculateSize(StartFightFestCsReq._repeated_avatarList_codec);
			num += this.unlockedCoachSkills_.CalculateSize(StartFightFestCsReq._repeated_unlockedCoachSkills_codec);
			if (this.Type != FightFestType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Type);
			}
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CF78 RID: 53112 RVA: 0x0022EDA0 File Offset: 0x0022CFA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartFightFestCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.EventId != 0U)
			{
				this.EventId = other.EventId;
			}
			this.avatarList_.Add(other.avatarList_);
			this.unlockedCoachSkills_.Add(other.unlockedCoachSkills_);
			if (other.Type != FightFestType.None)
			{
				this.Type = other.Type;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CF79 RID: 53113 RVA: 0x0022EE26 File Offset: 0x0022D026
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CF7A RID: 53114 RVA: 0x0022EE30 File Offset: 0x0022D030
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 40U)
				{
					if (num == 8U)
					{
						this.EventId = input.ReadUInt32();
						continue;
					}
					if (num == 34U)
					{
						this.avatarList_.AddEntriesFrom(ref input, StartFightFestCsReq._repeated_avatarList_codec);
						continue;
					}
					if (num == 40U)
					{
						this.Type = (FightFestType)input.ReadEnum();
						continue;
					}
				}
				else
				{
					if (num == 96U)
					{
						this.Id = input.ReadUInt32();
						continue;
					}
					if (num == 112U || num == 114U)
					{
						this.unlockedCoachSkills_.AddEntriesFrom(ref input, StartFightFestCsReq._repeated_unlockedCoachSkills_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005325 RID: 21285
		private static readonly MessageParser<StartFightFestCsReq> _parser = new MessageParser<StartFightFestCsReq>(() => new StartFightFestCsReq());

		// Token: 0x04005326 RID: 21286
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005327 RID: 21287
		public const int EventIdFieldNumber = 1;

		// Token: 0x04005328 RID: 21288
		private uint eventId_;

		// Token: 0x04005329 RID: 21289
		public const int AvatarListFieldNumber = 4;

		// Token: 0x0400532A RID: 21290
		private static readonly FieldCodec<PNJBCMKPNEA> _repeated_avatarList_codec = FieldCodec.ForMessage<PNJBCMKPNEA>(34U, PNJBCMKPNEA.Parser);

		// Token: 0x0400532B RID: 21291
		private readonly RepeatedField<PNJBCMKPNEA> avatarList_ = new RepeatedField<PNJBCMKPNEA>();

		// Token: 0x0400532C RID: 21292
		public const int UnlockedCoachSkillsFieldNumber = 14;

		// Token: 0x0400532D RID: 21293
		private static readonly FieldCodec<uint> _repeated_unlockedCoachSkills_codec = FieldCodec.ForUInt32(114U);

		// Token: 0x0400532E RID: 21294
		private readonly RepeatedField<uint> unlockedCoachSkills_ = new RepeatedField<uint>();

		// Token: 0x0400532F RID: 21295
		public const int TypeFieldNumber = 5;

		// Token: 0x04005330 RID: 21296
		private FightFestType type_;

		// Token: 0x04005331 RID: 21297
		public const int IdFieldNumber = 12;

		// Token: 0x04005332 RID: 21298
		private uint id_;
	}
}
